{extend name="public/base"}

{block name="x-body"}
    <div class="x-body">
      <blockquote class="layui-elem-quote">
        <span style="color: red;">提示：搜索日期条件将开始日和结束日填写完整，否则将为无效搜索</span>
      </blockquote>
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so" method="get">
          <div class="layui-input-inline">
            <select name="shipping_status">
              <option value="">发货状态</option>
              <option value="0" {$search_key.shipping_status === '0' ? 'selected' : ''}>未发货</option>
              <option value="2" {$search_key.shipping_status == 2 ? 'selected' : ''}>部分发货</option>
            </select>
          </div>
          <input type="text" name="consignee"  placeholder="收货人" autocomplete="off" class="layui-input" value="{$search_key.consignee}">
          <input type="text" name="order_sn"  placeholder="请输入订单号" autocomplete="off" class="layui-input" value="{$search_key.order_sn}">
          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
      </div>
      <xblock style="height: 40px;">
        <span class="x-right" style="line-height:40px">共有数据：{$list -> total()} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
            <th>ID</th>
            <th>订单编号</th>
            <th>下单时间</th>
            <th>收货人</th>
            <th>联系电话</th>
            <th>所选物流</th>
            <th>物流费用</th>
            <th>支付时间</th>
            <th>订单总价</th>
            <th>操作</th>
            </tr>
        </thead>
        <tbody>
          {volist name="list" id="v"}
            <tr>
              <td>{$v.id}</td>
              <td>{$v.order_sn}</td>
              <td>{if $v.add_time}{$v.add_time|date="Y-m-d H:i"}{/if}</td>
              <td>{$v.consignee}</td>
              <td>{$v.mobile}</td>
              <td>{$v.shipping_name}</td>
              <td>{$v.shipping_price}</td>
              <td>{if $v.pay_time}{$v.pay_time|date="Y-m-d H:i"}{/if}</td>
              <td>{$v.order_amount}</td>
              <td class="td-manage">
                <a title="去发货"  onclick="x_admin_show('订单编辑','{:url(\'orders/order_deliver\', [\'id\' => $v.id])}')" href="javascript:;">
                  <i class="layui-icon">&#xe609;</i>
                </a>
              </td>
            </tr>
          {/volist}
        </tbody>
      </table>
      <div class="page">
        {$list -> render()|raw}
      </div>

    </div>
{/block}